﻿//var serverName = "http://services.sukul.org";
// server name is now injected into the Site.master page straight from the configuraton database and initialized in globalLoad()
var serverName = "";

// when adding a new url here, make sure to update the globalLoad routine in Globals.js
var membershipPasswordRetrieveUrl = "/Services/MembershipService.svc/SendPasswordViaEmail";
var newsSourceUrl = "/NewsService.svc/GetNewsSources";
var newsHeadlineUrl = "/NewsService.svc/GetNewsHeadlines";
var newsSearchUrl = "/NewsService.svc/SearchNewsHeadlines";
var hitUpdateUrl = "/NewsService.svc/HitUpdate";
var newsSectionUrl = "/NewsService.svc/GetNewsSection";
var accountsLoadUrl = "/FinanceService.svc/GetAccounts";
var accountsGetUserUrl = "/MembershipService.svc/GetUserDetails";
var accountsSaveUserUrl = "/MembershipService.svc/SaveUserDetails";
var accountRegisterUserUrl = "/MembershipService.svc/RegisterUser";
var accountsSavePresetAvatarUrl = "/MembershipService.svc/SaveAvatarFromLayout";
var adminRolesGetUrl = "/AdministrationService.svc/GetRoles";
var adminRolesSaveUrl = "/AdministrationService.svc/SaveRole";
var adminRolesDeleteUrl = "/AdministrationService.svc/DeleteRole";

var adminUserGetUsers = "/AdministrationService.svc/GetUsers";
var adminUserGetUsersWithRoles = "/AdministrationService.svc/GetUsersWithRoles";
var adminUserDeleteUser = "/AdministrationService.svc/DeleteUser";
var adminUserAddUserToRole = "/AdministrationService.svc/AddUserToRole";
var adminUserDeleteUserFromRole = "/AdministrationService.svc/DeleteUserFromRole"

var preSetImagesUrl = "/Images/PreSet/";
var avatarUrl = "/Handlers/GetAvatarHandler.ashx";
var fileUploadUrl = "/Handlers/UploadHandler.ashx";
var avatarImageUrl = "/Upload/";
var lookupCountriesUrl = "/LookupService.svc/GetCountries";
var lookupStatesUrl = "/LookupService.svc/GetStates";
var lookupUsersUrl = "/LookupService.svc/GetUsers";
var transactionsLoadUrl = "/FinanceService.svc/GetTransactions";
var widgetGetPagesUrl = "/WidgetService.svc/SelectPages";
var widgetGetWidgetUrl = "/WidgetService.svc/SelectWidgets";
var widgetCreatePageUrl = "/WidgetService.svc/CreateP  age";
var widgetDeletePageUrl = "/WidgetService.svc/DeletePage";
var widgetEditPageUrl = "/WidgetService.svc/EditPage";
var widgetAllUrl = "/WidgetService.svc/LoadWidgets";

/* bShowServiceErrors controls whether the user sees actual error details or a generic message controlled by the sGenericErrorMessage variable */
var bShowServiceErrors = true;
var sGenericErrorMessage = "Oops! <br/>Well this is rather embarrasing...<br/> We seem to have a bug in the system. <br/>Please give us some time to sort this out. <br/>Sorry about that :-)";
